package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Payment;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface PaymentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Payment entity);

    Payment selectByPrimaryKey(Long id);

    List<Payment> selectAll();

    int updateByPrimaryKey(Payment entity);

    int queryForCount(QueryObject qo);

    List<Payment> queryForList(QueryObject qo);

    List<Integer> allAmount(QueryObject qo);
}